﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Setting.master" AutoEventWireup="true" CodeFile="Positions.aspx.cs" Inherits="Setting_Positions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="SettingHeader" Runat="Server">
	<style type="text/css">
         #searchBar{ padding:10px 0px 5px 0px;}
         #btnBar{ padding:10px 0px; }
     </style>
     <script type="text/javascript">
     	$(function () {
     		$('.commonTable tr').hover(function () {
     			$(this).css('background-color', '#ffffae');
     		},
            function () {
            	$(this).css('background-color', '#FFFFFF');
            });
     	});

        function addPos() {
     		window.open('add_position.aspx', '', 'width=350px,height=200px,scrollbars=1,resizable=no,left=' + (screen.availWidth - 350) / 2 + ',top=' + (screen.availHeight - 200) / 2);
     	}
     	function editPos(id) {
     		window.open('add_position.aspx?id=' + id, '', 'width=350px,height=200px,scrollbars=1,resizable=no,left=' + (screen.availWidth - 350) / 2 + ',top=' + (screen.availHeight - 200) / 2);
     	}
     	function delPos(id) {
     		if (confirm('确定删除?'))
     			window.location = "positions.aspx?delID=" + id;
     	}
     	function GoPage(n) {
     		window.location = "positions.aspx?p=" + n;
     	}
         
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SettingContent" Runat="Server">
<div class="navTitle"><a href="#">系统设置</a> > 职位</div>
<div>
    <table class="commonTable" cellspacing="0" cellpadding="5" >
	    <tr>
		    <th>名称</th>
		    <th>
		    </th>
	    </tr>
        <% WriteTableData();%>
	</table>
	<div class="gridPager">
		<%WriteTablePager(); %>
	</div>
    <div id="btnBar"><input type="button" value="添加职位" onclick="addPos()" /></div>
</div>
</asp:Content>

